<!DOCTYPE html>
<!-- 后台用户皆可用 -->
<html xmlns="http://www.w3.org/1999/xhtml" scroll="no">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${Title}</title>
<link rel="shortcut icon" href="${res}favicon.ico" type="image/x-icon" />
 <!--Basic Styles-->
<link href="../framework/css/font.css" rel="stylesheet" />
<link href="../framework/miniui/themes/material/miniui.css" rel="stylesheet" />
<link href="../framework/css/app.min.1.css" rel="stylesheet" type="text/css" />
<link href="../framework/css/app.min.2.css" rel="stylesheet" type="text/css" />
<script src="../framework/main.js" type="text/javascript"></script>
<style type="text/css">
    html, body{
        margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
    }    
</style>
<script type="text/javascript">
function doSearch(){
	var name = mini.get('SearchName').getValue().trim();
	mini.get('dg1').load({SearchName:name,RoleID:'${RoleID}'});
}

document.onkeydown = function(event){
	event = getEvent(event);
	if(event.keyCode==13){
		var ele = event.srcElement || event.target;
		if(ele.id == 'SearchUserName$text'||ele.id == 'Submitbutton'){
			doSearch();
		}
	}
}

Page.onLoad(function(){
	mini.get('dg1').load({RoleID:'${RoleID}'});
});

</script>
</head>
<body>
<div class="search-area">
	<div class="pull-right">
		<input class="mini-textbox" id="SearchName" type="text" emptyText="请输入用户名或真实姓名"/>
		<button class="btn btn-default" id="Submitbutton" onClick="doSearch()"><i class="iconfont icon-search"></i></button>
	</div>
</div>
<div class="mini-fit">
	<div id="dg1" class="mini-datagrid z-depth-1" style="width:100%;height:100%;" method="MemberRole.bindUserList"  idField="Member" multiSelect="true">
	    <div property="columns">
	        <div type="indexcolumn"></div>     
	        <div type="checkcolumn" ></div>     
	        <div field="EmployeeNumber" width="100">员工编号</div>   
            <div field="UserName" width="120">用户名</div>
            <div field="RealName" width="100">真实姓名</div>
            <div field="Mobile" width="100">手机号</div>
            <div field="Email" width="100">电子邮箱</div>
        </div>
     </div>
</div>
</body>
</html>
